package com.dkd.manage.pojo.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.dkd.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 商品管理对象 tb_sku
 *
 * @author itgn
 * @date 2025-05-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ExcelIgnoreUnannotated
@ColumnWidth(16)
@HeadRowHeight(14)
@HeadFontStyle(fontHeightInPoints = 11)
public class Sku {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long skuId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @ExcelProperty(value = "商品名称")
    private String skuName;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    @ExcelProperty(value = "商品图片")
    private String skuImage;

    /**
     * 品牌
     */
    @Excel(name = "品牌")
    @ExcelProperty(value = "品牌")
    private String brandName;

    /**
     * 规格
     */
    @Excel(name = "规格")
    @ExcelProperty(value = "规格")
    private String unit;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    @ExcelProperty(value = "商品价格")
    private Long price;

    /**
     * 商品类型
     */
    @Excel(name = "商品类型")
    @ExcelProperty(value = "商品类型")
    private Long classId;

    /**
     * 是否打折促销
     */
    private Integer isDiscount;


    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
